package com.gdust.hzx.manager.service.impl;

import com.gdust.hzx.manager.mapper.ProductUnitMapper;
import com.gdust.hzx.manager.service.ProductUnitService;
import com.gdust.hzx.model.entity.base.ProductUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * ClassName: ProductUnitServiceImpl
 * Package: com.gdust.spzx.manager.service.impl
 * Description:
 *
 * @Author syun
 * @Create 2024/12/22 20:58
 * @Version 1.0
 */
@Service
public class ProductUnitServiceImpl implements ProductUnitService {
    //注入商品单位表的mapper
    @Autowired
    private ProductUnitMapper productUnitMapper;

    /**
     * 下拉框加载商品单元数据
     * @return
     */
    @Override
    public List<ProductUnit> findAll() {
        //自定义查询：查询加载商品单元数据
        return productUnitMapper.findAll();
    }
}
